package com.zyk.scaffold.tcp.listener.event;

import com.zyk.scaffold.tcp.enums.EventTypeEnum;

public class Event<T> {
    private EventTypeEnum eventType;
    private T context;

    public Event(EventTypeEnum eventType, T context) {
        this.eventType = eventType;
        this.context = context;
    }

    public T getContext(){
        return context;
    };

    public EventTypeEnum getEventType() {
        return eventType;
    }
}
